package com.zhiyume.service.common;

public enum ConstantEnum {
    CONSTANT_ERRTYPE("errType","错误类型"),
    CONSTANT_ERRMSG("errMsg","错误描述"),

    CONSTANT_SUCCESS("0000","成功"),
    CONSTANT_MISS_PARA("0001","缺少参数"),
    CONSTANT_NO_DATA("0002","查询不到信息"),
    CONSTANT_PARA_ERROR("0003","参数不正确"),
    CONSTANT_ADD_DATE_ERROR("0004","添加数据出错"),
    CONSTANT_UPDATE_DATE_ERROR("0005","更新数据出错"),
    CONSTANT_ERROR_PASSWORD("0006","用户名或者密码错误"),
    CONSTANT_MISS_USERANME("0007","用户名不能为空"),
    CONSTANT_MISS_PASSWORD("0008","密码不能为空"),
    CONSTANT_USER_EXISTS("0009","用户名已存在"),
    CONSTANT_USER_INFO_TIMEOUT("0010","用户信息获取超时"),


    CONSTANT_TOKEN_PRE("TOKEN_","token的前缀"),
    CONSTANT_SYS_ERROR("9999","系统内部错误");


    private String errType;
    private String errMsg;

    public String getErrType() {
        return errType;
    }

    public void setErrType(String errType) {
        this.errType = errType;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    ConstantEnum(String errType, String errMsg) {
        this.errType = errType;
        this.errMsg = errMsg;
    }
}
